<div class="meta-container meta-container-60">
    <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 detail-block" cg-busy="waitingDetailPromise">
        <h3 class="meta-no-margin">
            <span ng-bind="demandData.title">需求名称</span>
            <span class="tag-recommend" ng-if="demandData.rank===1">推荐</span>
        </h3>
        <hr/>
        <div class="baseInfo">
            <ul class="col-lg-4 meta-no-padding leftInfo">
                <li ng-repeat="element in demandData.areas track by $index">
                    <a ui-sref="meta.demand.list.all({area:element})" class="meta-tab" alt="点击查看该领域需求">
                        <img src="/images/common/area_icon.png"
                             class="meta-tab-area"
                             alt="所属领域"
                        >{{element}}
                    </a>
                </li>
                <li class="clear-float"></li>
            </ul>
            <ul class="col-lg-8 meta-no-padding rightInfo">
                <li>浏览量：<span ng-bind="demandData.pageViews"></span></li>
                <li>下载量：<span ng-bind="demandData.downloads"></span></li>
                <li>状态：<span
                    ng-bind="demandData.state === '已完成' ? demandData.state : (demandData.verified ? '征集中' : '审核中')"></span>
                </li>
                <li>地点：
                    <span ng-bind="demandData.enterpriseInfo.province"></span>
                    <span ng-bind="demandData.enterpriseInfo.city"></span>
                </li>
                <li>
                    <img src="/images/common/demand_icon.png" class="earnest_money" alt="诚意保证金">诚意保证金：
                    <span ng-bind="demandData.earnestMoney + '元'"></span>
                </li>
                <li class="clear-float"></li>
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="meta-container-30">
            <h4>需求概要信息</h4>

            <div class="baseIntro">
                <div class="col-lg-3 col-md-6 col-xs-12" ng-show="demandData.sn">编号：
                    <span ng-bind="demandData.sn"></span>
                </div>
                <div class="col-lg-3 col-md-6 col-xs-12" ng-show="demandData.researchType">研发类型：
                    <span ng-bind="demandData.researchType"></span>
                </div>
                <div class="col-lg-3 col-md-6 col-xs-12" ng-show="demandData.researchPeriod">研发周期：
                    <span ng-bind="demandData.researchPeriod[0]"></span>月 &nbsp;-&nbsp;
                    <span ng-bind="demandData.researchPeriod[1]"></span>月
                </div>
                <div class="col-lg-3 col-md-6 col-xs-12" ng-show="demandData.researchFunding">研发经费：
                    <span ng-bind="demandData.researchFunding[0]"></span>万 &nbsp;-&nbsp;
                    <span ng-bind="demandData.researchFunding[1]"></span>万
                </div>
                <div class="col-lg-3 col-md-6 col-xs-12" ng-show="demandData.enterpriseInfo.scale">企业规模：
                    <span ng-bind="demandData.enterpriseInfo.scale"></span>
                </div>
                <div class="col-lg-6 col-xs-12" ng-show="demandData.cooperationWays">合作方式：
                    <span ng-repeat="element in demandData.cooperationWays" ng-bind="element"></span>
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="buttonGroup">
                <button class="btn btn-info btn-meta-14 btn-meta-blue" ui-sref=".cooperation.step.one"
                        ng-if="demandData.verified && demandData.publisherId !== USER.id && demandData.leaderId !== USER.id &&demandData.state!=='已完成'">
                    解决此需求
                </button>
                <button class="btn btn-meta-14 btn-meta-blue-reverse" ng-click="Favorite()"
                        ng-bind="isFavorited?'已收藏':'收藏'">收藏
                </button>
                <a class="btn btn-meta-14 btn-meta-blue-reverse"
                   ng-href="{{CONFIG.apiHost + '/demands/' + demandData.id + '/download'}}" target="_blank">下
                    载
                </a>
                <button uib-popover-template="demandData.templateUrl" popover-placement="right"
                        class="btn btn-meta-14 btn-meta-blue-reverse">分 享
                </button>
            </div>
            <script type="text/ng-template" id="myPopoverTemplate.html">
                <qrcode version='8' data="{{hrefSrc}}" href="{{hrefSrc}}"></qrcode>
            </script>
        </div>
        <p>在迈科技自主对接，迈科技不收取任何费用。</p>

        <div class="expand-info-block" ng-show="demandData.details">
            <h4>需求详述</h4>
            <hr/>
            <div class="blockContent fr-view" ng-bind-html="demandData.details | unsafe"></div>
        </div>

        <div class="expand-info-block" ng-show="demandData.indicators">
            <h4>预期目标</h4>
            <hr/>
            <div class="blockContent fr-view" ng-bind-html="demandData.indicators | unsafe"></div>
        </div>

        <div class="expand-info-block" ng-show="demandData.theUninteresting">
            <h4>否定方案</h4>
            <hr/>
            <div class="blockContent fr-view" ng-bind-html="demandData.theUninteresting | unsafe"></div>
        </div>

        <div class="expand-info-block" ng-if="demandData.attachments">
            <h4>附件</h4>
            <hr/>
            <ul style="list-style:none;padding:0;">
                <li ng-repeat="element in demandData.attachments track by $index">
                    <span ng-bind="$index + 1"></span>.
                    &nbsp;&nbsp;
                    <a style="color: #1F86ED" ng-href="{{element.link + '?download/' + element.name}}" target="_blank"
                       ng-bind="element.name">
                    </a>
                </li>
            </ul>
        </div>
        <div class="expand-info-block">
            <h4>需求负责人</h4>
            <hr/>
            <ul class="blockContent personInCharge" ng-if="demandData.leaderId">
                <li>称呼<span>{{demandData.leader.name}}</span></li>
                <li>电话<span>{{demandData.leader.contactTelephone || demandData.leader.mobile}}</span></li>
                <li>邮箱<span><a ng-href="mailTo:{{demandData.leader.contactEmail || demandData.leader.email}}"
                               ng-bind="demandData.leader.contactEmail || demandData.leader.email"></a></span></li>
            </ul>
            <ul class="blockContent personInCharge" ng-if="!demandData.leaderId">
                <li>称呼<span>迈科技</span></li>
                <li>电话<span>021-54336693</span></li>
                <li>邮箱<span><a href="mailTo:service@metalab.cn">service@metalab.cn</a></span></li>
            </ul>
        </div>

        <!--<div class="meta-container-60">-->
        <!--<h4>需求负责人</h4>-->
        <!--<hr/>-->
        <!--<ul class="blockContent personInCharge" ng-if="demandData.leaderId">-->
        <!--<li>称呼<span ng-bind="demandData.leader.name"></span></li>-->
        <!--<li>邮箱<span ng-bind="demandData.leader.email"></span></li>-->
        <!--<li>电话<span ng-bind="demandData.leader.mobile"></span></li>-->
        <!--</ul>-->
        <!--<ul class="blockContent personInCharge" ng-if="!demandData.leaderId">-->
        <!--<li>暂无负责人</li>-->
        <!--</ul>-->
        <!--<div class="buttonGroup">-->
        <!--<button class="btn btn-info btn-meta-14 btn-meta-blue"-->
        <!--ui-sref=".cooperation.step.one">-->
        <!--我要申请-->
        <!--</button>-->
        <!--&lt;!&ndash;<button class="btn btn-meta-14 btn-meta-blue-reverse" ng-click="$state.go('.', {passport: 'signIn'})">收&ndash;&gt;-->
        <!--&lt;!&ndash;藏&ndash;&gt;-->
        <!--&lt;!&ndash;</button>&ndash;&gt;-->
        <!--<a class="btn btn-meta-14 btn-meta-blue-reverse"-->
        <!--ng-href="{{CONFIG.apiHost + '/demands/' + demandData.id + '/download'}}" target="_blank">下-->
        <!--载-->
        <!--</a>-->
        <!--<button uib-popover-template="demandData.templateUrl" popover-placement="right"-->
        <!--class="btn btn-meta-14 btn-meta-blue-reverse">分 享-->
        <!--</button>-->
        <!--</div>-->
        <!--</div>-->
        <div class="buttonGroup">
            <button class="btn btn-info btn-meta-14 btn-meta-blue" ui-sref=".cooperation.step.one"
                    ng-if="demandData.verified && demandData.publisherId !== USER.id && demandData.leaderId !== USER.id && demandData.state!=='已完成'">
                解决此需求
            </button>
            <button class="btn btn-meta-14 btn-meta-blue-reverse" ng-click="Favorite()"
                    ng-bind="isFavorited?'已收藏':'收藏'">收藏
            </button>
            <a class="btn btn-meta-14 btn-meta-blue-reverse"
               ng-href="{{CONFIG.apiHost + '/demands/' + demandData.id + '/download'}}" target="_blank">下
                载
            </a>
            <button uib-popover-template="demandData.templateUrl" popover-placement="right"
                    class="btn btn-meta-14 btn-meta-blue-reverse">分 享
            </button>
        </div>
    </div>
    <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 detail-recommend" cg-busy="waitingArticlesPromise">
        <h4>相关技术需求</h4>
        <ul>
            <li ng-repeat="element in recommendData" ng-if="element.id&&element.title"><a
                ui-sref="meta.demand.detail({demandId:element.id})">{{element.title}}</a></li>
        </ul>
    </div>
    <div style="clear:both;"></div>
</div>
